<include file="public@head_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>
<include file="public@sidebar_head"/>

<div class="newsW">
	<div class='st-searchparameter st-block'>
        {$configinfo['searchparameterhtml']}
        <div style='clear:both;'></div>
      </div>
    <ul class="newsList">
    	<php>
            $where=[
            'post.create_time'=>['egt',0]
            ];
            if($searchparawhere)$where+=$searchparawhere;
            $expwhere = array();if($numberowhere)$expwhere['orderwhere']=$numberowhere;
            $page=[
                'list_rows'=>$configbase['config']['listnum'.$configinfo['moduleid']],
                'next'=>$configlang['Next_page'],
                'prev'=>$configlang['Previous_page']
            ];
            $order = "";if($numberorder)$order = $numberorder.", post.create_time DESC";
        </php>
        <portal:articles item="vo" where="$where" expwhere="$expwhere" order="$order" page="$page" relation="categories" categoryIds="$category.id" returnVarName="articles_data">
        <php>$gettime = getflashtime(0.5,$key,1,1);</php>
        <li class="clearfloat wow fadeInUp" data-wow-duration="{$gettime}s">
            <div class="pic">
              <a class="img" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">
              	<empty name="vo.img_thumb">
                    <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                         alt="{$vo.post_title}">
                    <else/>
                    <img src="{:cmf_get_image_url($vo.img_thumb)}"
                         alt="{$vo.post_title}">
                </empty>
              </a>
            </div>
            <div class="newsInner">
                <h2 class="single-line">
                	<a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">
                        {$vo.post_title}
                    </a>
                </h2>
                <h3>                    
                	<i class="fa fa-calendar"></i>
                    {:date('Y-m-d',$vo.published_time)}

                    <i class="fa fa-eye"></i>
                    {$vo.post_hits}
                    
                    <a href="{:url('portal/Article/doLike',array('id'=>$vo['id']))}"
                       class="js-count-btn">
                       <i class="fa fa-thumbs-up"></i>
                       <span class="count">{$vo.post_like}</span></a>
                       
                    <a href="{:url('user/Favorite/add',array('id'=>$vo['id'],'cid'=>$category['id']))}"
                       class="js-favorite-btn"
                       data-id="{$vo.id}"
                       data-table="portal_post"
                       data-title="{:base64_encode($vo.post_title)}"
                       data-url="{:cmf_url_encode('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}"
                    >
                        <i class="fa fa-star-o"></i>
                    </a>
                    
                    <div class="st-x-showxmobile"></div>
                    <if condition="$vo.recommended == 1">
                    <span class="st-icoBox st-icoItem1 st-posr st-top1">{$configlang['Boutique_top']}</span>
                    </if>
                    <if condition="$vo.is_top == 1">
                    <span class="st-icoBox st-icoItem st-posr st-top1">{$configlang['Recommend']}</span>
                    </if>
                </h3>
                <notempty name="vo.taglist">
                <div class="st-mt5 st-xm-fon12">
                    {$configlang['label']}:
                    <foreach name="vo.taglist" item="tag">
                     <a href="{:cmf_url('portal/Tag/index',array('id'=>$configinfo.moduleid,'tid'=>$tag.tag_id))}" title="{$tag.name}">{$tag.name}</a> | 
                    </foreach>
                 </div>
                 </notempty>
                <p class="multi-line">{$vo.post_excerpt}</p>
                <a class="more" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">{$configlang.lookdetail}</a>
            </div>
        </li>
        </portal:articles>
    </ul>
    
    <div class="show-pages">
        <div class="show-pagination">
            <page/>
        </div>
    </div>
    
</div>
                    
<include file="public@sidebar_foot"/>
<include file="public@footer"/>
</body>    
</html>